﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="AddNewHFVariables.aspx.cs" Inherits="Admin_home_refinance_AddNewHFVariables" %>
<%@ Register Src="../../controls/usrDate.ascx" TagName="usrDate" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <script src="../../controls/CE_Date.js" type="text/javascript"></script>
    <asp:ScriptManager ID="ScriptManager" runat="server"></asp:ScriptManager>
        
    <asp:UpdatePanel ID="upnlFields" runat="server">
    <ContentTemplate>
    <div class="contents">
        <table width="100%" cellpadding="3" cellspacing="0" border="0">
            <tr>
                <td colspan="2">
                    <h1>Add Home Refinance Variables</h1>
                    <asp:Label ID="lblPVTHFID" runat="server" Visible="false"></asp:Label>
                    <asp:Label ID="lblHDBHFID" runat="server" Visible="false"></asp:Label>
                    <asp:Label ID="lblPackageId" runat="server" Visible="false" Text="0"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="width: 30%"; valign="top">Provider Company Name</td>
                <td  valign="top">
                    <asp:DropDownList ID="ddlProviderName" runat="server">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvProviderName" runat="server" ControlToValidate="ddlProviderName"
                        ErrorMessage="Choose Provider company Name"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    Product Name
                </td>
                <td  valign="top">
                    <asp:TextBox ID="txtProductName" runat="server" MaxLength="250" Rows="2" Columns="100"
                        TextMode="MultiLine" Width="250px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvProductName" runat="server" ControlToValidate="txtProductName"
                        ErrorMessage="Require product name."></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td  valign="top">
                    Loan Purpose</td>
                <td  valign="top">
                    <asp:DropDownList ID="ddlLoanPurpose" runat="server">
                        <asp:ListItem Value="-1">Select</asp:ListItem>
                        <asp:ListItem Value="1">New Purchase Only</asp:ListItem>
                        <asp:ListItem Value="2">Refinancing Only</asp:ListItem>
                        <asp:ListItem Value="3">Both</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvLoanPurpose" runat="server" ControlToValidate="ddlLoanPurpose"
                        InitialValue="-1" ErrorMessage="Choose loan purpose."></asp:RequiredFieldValidator>
                </td>
            </tr>
            <asp:UpdatePanel ID="upnlPT" runat="server">
            <ContentTemplate>
            <tr>
                <td valign="top">
                    Property Type
                </td>
                <td valign="top">
                    <asp:CheckBox ID="chkPrivate" runat="server" onclick="CheckPropertyType()" 
                        Text="Private" AutoPostBack="true" 
                        oncheckedchanged="chkPrivate_CheckedChanged" />
                    <asp:CheckBox ID="chkHDB" runat="server" onclick="CheckPropertyType()" 
                        Text="HDB" AutoPostBack="true" oncheckedchanged="chkHDB_CheckedChanged" />
                    <asp:RequiredFieldValidator ControlToValidate="txtPropertyType" ID="rfvPropertyType" runat="server"
                                    ErrorMessage="You must select property type."></asp:RequiredFieldValidator>
                    <div style="display: none">
                        <asp:TextBox ID="txtPropertyType" runat="server" />
                        
                        <script type="text/javascript">
                        function CheckPropertyType()
                            {
                                //alert('rdoYesOffFDCom');
                                var ctrlTxt = document.getElementById('<%=txtPropertyType.ClientID%>');
                                var ctrlP = document.getElementById('<%=chkPrivate.ClientID%>');
                                var ctrlH = document.getElementById('<%=chkHDB.ClientID%>');
                                var valCtrl = document.getElementById('<%=rfvPropertyType.ClientID%>');
                                if ((ctrlP.checked == true) || (ctrlH.checked == true))
                                {
                                    ctrlTxt.value = '1';
                                    valCtrl.style.visibility = 'hidden';
                                }
                                else
                                {
                                    ctrlTxt.value = '';
                                }
                            }
                        </script>
                    </div>
                </td>
            </tr>
            </ContentTemplate>
            </asp:UpdatePanel>
            <tr>
                <td  valign="top">
                    Property Status</td>
                <td  valign="top">
                    <asp:DropDownList ID="ddlPropertyStatus" runat="server">
                        <asp:ListItem Value="-1">Select</asp:ListItem>
                        <asp:ListItem Value="1">Completed</asp:ListItem>
                        <asp:ListItem Value="2">UnCompleted</asp:ListItem>
                        <asp:ListItem Value="3">Both</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvPropertyStatus" runat="server" ControlToValidate="ddlPropertyStatus"
                        InitialValue="-1" ErrorMessage="Choose Property Status."></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    Interest Rate Package
                </td>
                <td valign="top">
                    <asp:DropDownList ID="ddlInterestRatePackage" runat="server">
                        <asp:ListItem Value="-1">Select</asp:ListItem>
                        <asp:ListItem Value="1">Fixed</asp:ListItem>
                        <asp:ListItem Value="2">Variable</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvInterestRatePackage" runat="server" ControlToValidate="ddlInterestRatePackage"
                        InitialValue="-1" ErrorMessage="Choose interest rate package."></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <asp:UpdatePanel ID="upnlMinAmt" runat="server">
            <ContentTemplate>
            <tr>
                <td valign="top">
                    Has minimum loan amount limit
                </td>
                <td valign="top">
                    <asp:CheckBox ID="chkYes" runat="server" Text="Yes" AutoPostBack="true" 
                        oncheckedchanged="chkYes_CheckedChanged" />
                </td>
            </tr>
            <asp:Panel ID="pnlAmtLimit" runat="server" Width="100%">
            <tr>
                <td valign="top">
                    Minimum loan amount
                </td>
                <td valign="top">
                    >=&nbsp;<asp:TextBox ID="txtMinimumAmount" runat="server" Width="100px"></asp:TextBox>$
                    <asp:RequiredFieldValidator ID="rfvMinimumAmount" runat="server" ControlToValidate="txtMinimumAmount"
                        ErrorMessage="Minimum loan amount."></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revMinimumAmount" runat="server" ControlToValidate="txtMinimumAmount"
                        ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            </asp:Panel>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            </ContentTemplate>
            </asp:UpdatePanel>
            <asp:UpdatePanel ID="upnlPolicyPeroid" runat="server">
            <ContentTemplate>
            <tr>
                <td valign="top">
                    Package Period
                </td>
                <td valign="top">
                    <asp:CheckBox ID="chkPolicyPeriod" runat="server" Text="Yes" AutoPostBack="true" 
                        oncheckedchanged="chkPolicyPeriod_CheckedChanged" />
                </td>
            </tr>
            <asp:Panel ID="pnlPolicyPeriod" runat="server" Width="100%">
            <tr>
                <td valign="top">
                    Peroid From
                </td>
                <td valign="top">
                    <uc1:usrDate ID="ddlPolicyFrom" ErrorMessage="Choose policy period from" runat="server"></uc1:usrDate>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    Peroid To
                </td>
                <td valign="top">
                    <uc1:usrDate ID="ddlPolicyTo" ErrorMessage="Choose policy period to" runat="server"></uc1:usrDate>
                </td>
            </tr>
            </asp:Panel>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            </ContentTemplate>
            </asp:UpdatePanel>
            <asp:UpdatePanel ID="upnlLock" runat="server">
            <ContentTemplate>
            <tr>
                <td valign="top">
                    Lock In
                </td>
                <td valign="top">
                    <asp:DropDownList ID="ddlLockin" runat="server">
                        <asp:ListItem Value="-1">Select</asp:ListItem>
                        <asp:ListItem Value="0">No</asp:ListItem>
                        <asp:ListItem Value="1">Yes</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvLockin" runat="server" ControlToValidate="ddlLockin"
                        InitialValue="-1" ErrorMessage="Choose Lock in."></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            </ContentTemplate>
            </asp:UpdatePanel>
            <tr>
                <td valign="top">&nbsp;</td>
                <td valign="top">
                    <table width="100%" cellpadding="3" cellspacing="0" border="0">
                        <tr>
                            <td style="font-weight: bold; width: 48%;" align="left">Private</td>
                            <td style="width: 4%;">&nbsp;</td>
                            <td style="font-weight: bold; width: 48%;" align="left">HDB</td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td valign="top">Minimum Loan Tenure</td>
                <td valign="top">
                    <table width="100%" cellpadding="3" cellspacing="0" border="0">
                        <tr>
                            <td valign="top">
                                <asp:DropDownList ID="ddlPVTMinLoanTenure" runat="server">
                                    <asp:ListItem Value="-1">Select</asp:ListItem>
                                    <asp:ListItem>5</asp:ListItem>
                                    <asp:ListItem>10</asp:ListItem>
                                    <asp:ListItem>15</asp:ListItem>
                                    <asp:ListItem>20</asp:ListItem>
                                    <asp:ListItem>25</asp:ListItem>
                                    <asp:ListItem>30</asp:ListItem>
                                    <asp:ListItem>35</asp:ListItem>
                                    <asp:ListItem>40</asp:ListItem>
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator ID="rfvPVTMinLoanTenure" runat="server" ControlToValidate="ddlPVTMinLoanTenure"
                                    InitialValue="-1" ErrorMessage="Choose minimum loan tenure."></asp:RequiredFieldValidator>
                            </td>
                            <td valign="top">&nbsp;</td>
                            <td valign="top">
                                <asp:DropDownList ID="ddlHDBMinLoanTenure" runat="server">
                                    <asp:ListItem Value="-1">Select</asp:ListItem>
                                    <asp:ListItem>5</asp:ListItem>
                                    <asp:ListItem>10</asp:ListItem>
                                    <asp:ListItem>15</asp:ListItem>
                                    <asp:ListItem>20</asp:ListItem>
                                    <asp:ListItem>25</asp:ListItem>
                                    <asp:ListItem>30</asp:ListItem>
                                    <asp:ListItem>35</asp:ListItem>
                                    <asp:ListItem>40</asp:ListItem>
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator ID="rfvHDBMinLoanTenure" runat="server" ControlToValidate="ddlHDBMinLoanTenure"
                                    InitialValue="-1" ErrorMessage="Choose minimum loan tenure."></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td valign="top">Maximum Loan Tenure</td>
                <td valign="top">
                    <table width="100%" cellpadding="3" cellspacing="0" border="0">
                        <tr>
                            <td valign="top">
                                <asp:DropDownList ID="ddlPVTMaxLoanTenure" runat="server">
                                    <asp:ListItem Value="-1">Select</asp:ListItem>
                                    <asp:ListItem>5</asp:ListItem>
                                    <asp:ListItem>10</asp:ListItem>
                                    <asp:ListItem>15</asp:ListItem>
                                    <asp:ListItem>20</asp:ListItem>
                                    <asp:ListItem>25</asp:ListItem>
                                    <asp:ListItem>30</asp:ListItem>
                                    <asp:ListItem>35</asp:ListItem>
                                    <asp:ListItem>40</asp:ListItem>
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator ID="rfvPVTMaxLoanTenure" runat="server" ControlToValidate="ddlPVTMaxLoanTenure"
                                    InitialValue="-1" ErrorMessage="Choose maximum loan tenure."></asp:RequiredFieldValidator>
                            </td>
                            <td valign="top">&nbsp;</td>
                            <td valign="top">
                                <asp:DropDownList ID="ddlHDBMaxLoanTenure" runat="server">
                                    <asp:ListItem Value="-1">Select</asp:ListItem>
                                    <asp:ListItem>5</asp:ListItem>
                                    <asp:ListItem>10</asp:ListItem>
                                    <asp:ListItem>15</asp:ListItem>
                                    <asp:ListItem>20</asp:ListItem>
                                    <asp:ListItem>25</asp:ListItem>
                                    <asp:ListItem>30</asp:ListItem>
                                    <asp:ListItem>35</asp:ListItem>
                                    <asp:ListItem>40</asp:ListItem>
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator ID="rfvHDBMaxLoanTenure" runat="server" ControlToValidate="ddlHDBMaxLoanTenure"
                                    InitialValue="-1" ErrorMessage="Choose maximum loan tenure."></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr><td colspan="2">&nbsp;</td></tr>
            <tr>
                <td valign="top">Minimum Age of Applicant</td>
                <td valign="top">
                    <table width="100%" cellpadding="3" cellspacing="0" border="0">
                        <tr>
                            <td valign="top">
                                <asp:DropDownList ID="ddlPVTMinAgeOfApplicant" runat="server">
                                    <asp:ListItem>Select</asp:ListItem>
                                    <asp:ListItem>18</asp:ListItem>
                                    <asp:ListItem>20</asp:ListItem>
                                    <asp:ListItem>22</asp:ListItem>
                                    <asp:ListItem>24</asp:ListItem>
                                    <asp:ListItem>26</asp:ListItem>
                                    <asp:ListItem>28</asp:ListItem>
                                    <asp:ListItem>30</asp:ListItem>
                                    <asp:ListItem>32</asp:ListItem>
                                    <asp:ListItem>34</asp:ListItem>
                                    <asp:ListItem>36</asp:ListItem>
                                    <asp:ListItem>38</asp:ListItem>
                                    <asp:ListItem>40</asp:ListItem>
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator ID="rfvPVTMinAgeOfApplicant" runat="server" ControlToValidate="ddlPVTMinAgeOfApplicant"
                                    InitialValue="-1" ErrorMessage="Choose minimum age of  applicant."></asp:RequiredFieldValidator>
                            </td>
                            <td valign="top">&nbsp;</td>
                            <td valign="top">
                                <asp:DropDownList ID="ddlHDBMinAgeOfApplicant" runat="server">
                                    <asp:ListItem>Select</asp:ListItem>
                                    <asp:ListItem>18</asp:ListItem>
                                    <asp:ListItem>20</asp:ListItem>
                                    <asp:ListItem>22</asp:ListItem>
                                    <asp:ListItem>24</asp:ListItem>
                                    <asp:ListItem>26</asp:ListItem>
                                    <asp:ListItem>28</asp:ListItem>
                                    <asp:ListItem>30</asp:ListItem>
                                    <asp:ListItem>32</asp:ListItem>
                                    <asp:ListItem>34</asp:ListItem>
                                    <asp:ListItem>36</asp:ListItem>
                                    <asp:ListItem>38</asp:ListItem>
                                    <asp:ListItem>40</asp:ListItem>
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator ID="rfvHDBMinAgeOfApplicant" runat="server" ControlToValidate="ddlHDBMinAgeOfApplicant"
                                    InitialValue="-1" ErrorMessage="Choose minimum age of  applicant."></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td valign="top">Maximum Age of Applicant</td>
                <td valign="top">
                    <table width="100%" cellpadding="3" cellspacing="0" border="0">
                        <tr>
                            <td valign="top">
                                <asp:DropDownList ID="ddlPVTMaxAgeOfApplicant" runat="server">
                                    <asp:ListItem Value="-1">Select</asp:ListItem>
                                    <asp:ListItem>30</asp:ListItem>
                                    <asp:ListItem>32</asp:ListItem>
                                    <asp:ListItem>34</asp:ListItem>
                                    <asp:ListItem>36</asp:ListItem>
                                    <asp:ListItem>38</asp:ListItem>
                                    <asp:ListItem>40</asp:ListItem>
                                    <asp:ListItem>42</asp:ListItem>
                                    <asp:ListItem>44</asp:ListItem>
                                    <asp:ListItem>46</asp:ListItem>
                                    <asp:ListItem>48</asp:ListItem>
                                    <asp:ListItem>50</asp:ListItem>
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator ID="rfvPVTMaxAgeOfApplicant" runat="server" ControlToValidate="ddlPVTMaxAgeOfApplicant"
                                    InitialValue="-1" ErrorMessage="Choose maximum age of  applicant."></asp:RequiredFieldValidator>
                            </td>
                            <td valign="top">&nbsp;</td>
                            <td valign="top">
                                <asp:DropDownList ID="ddlHDBMaxAgeOfApplicant" runat="server">
                                    <asp:ListItem Value="-1">Select</asp:ListItem>
                                    <asp:ListItem>30</asp:ListItem>
                                    <asp:ListItem>32</asp:ListItem>
                                    <asp:ListItem>34</asp:ListItem>
                                    <asp:ListItem>36</asp:ListItem>
                                    <asp:ListItem>38</asp:ListItem>
                                    <asp:ListItem>40</asp:ListItem>
                                    <asp:ListItem>42</asp:ListItem>
                                    <asp:ListItem>44</asp:ListItem>
                                    <asp:ListItem>46</asp:ListItem>
                                    <asp:ListItem>48</asp:ListItem>
                                    <asp:ListItem>50</asp:ListItem>
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator ID="rfvHDBMaxAgeOfApplicant" runat="server" ControlToValidate="ddlHDBMaxAgeOfApplicant"
                                    InitialValue="-1" ErrorMessage="Choose maximum age of  applicant."></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr><td colspan="2">&nbsp;</td></tr>
            <tr>
                <td valign="top">Max Margin Finance</td>
                <td valign="top">
                    <table width="100%" cellpadding="3" cellspacing="0" border="0">
                        <tr>
                            <td valign="top">
                                <asp:DropDownList ID="ddlPVTMaxMarginFin" runat="server">
                                    <asp:ListItem Value="-1">Select</asp:ListItem>
                                    <asp:ListItem>50</asp:ListItem>
                                    <asp:ListItem>60</asp:ListItem>
                                    <asp:ListItem>70</asp:ListItem>
                                    <asp:ListItem>80</asp:ListItem>
                                    <asp:ListItem>90</asp:ListItem>
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator ID="rfvPVTMaxMarginFin" runat="server" ControlToValidate="ddlPVTMaxMarginFin"
                                    InitialValue="-1" ErrorMessage="Choose max margin finance."></asp:RequiredFieldValidator>
                            </td>
                            <td valign="top">&nbsp;</td>
                            <td valign="top">
                                <asp:DropDownList ID="ddlHDBMaxMarginFin" runat="server">
                                    <asp:ListItem Value="-1">Select</asp:ListItem>
                                    <asp:ListItem>50</asp:ListItem>
                                    <asp:ListItem>60</asp:ListItem>
                                    <asp:ListItem>70</asp:ListItem>
                                    <asp:ListItem>80</asp:ListItem>
                                    <asp:ListItem>90</asp:ListItem>
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator ID="rfvHDBMaxMarginFin" runat="server" ControlToValidate="ddlHDBMaxMarginFin"
                                    InitialValue="-1" ErrorMessage="Choose max margin finance."></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td valign="top">Full Redemption Penalty</td>
                <td valign="top">
                    <table width="100%" cellpadding="3" cellspacing="0" border="0">
                        <tr>
                            <td valign="top">
                                <asp:TextBox ID="txtPVTFullRedPen" runat="server"></asp:TextBox>
                            </td>
                            <td valign="top">&nbsp;</td>
                            <td valign="top">
                                <asp:TextBox ID="txtHDBFullRedPen" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td valign="top">Legal Fees Subsidy</td>
                <td valign="top">
                    <table width="100%" cellpadding="3" cellspacing="0" border="0">
                        <tr>
                            <td valign="top">
                                <asp:TextBox ID="txtPVTLegalFeeSub" runat="server"></asp:TextBox>
                            </td>
                            <td valign="top">&nbsp;</td>
                            <td valign="top">
                                <asp:TextBox ID="txtHDBLegalFeeSub" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr><td colspan="2">&nbsp;</td></tr>
            <%--<asp:Panel ID="pnlLockin" runat="server" Width="100%">--%>
            <tr>
                <td valign="top">Interest - Year 1</td>
                <td valign="top">
                    <table width="100%" cellpadding="3" cellspacing="0" border="0">
                        <tr>
                            <td valign="top">
                                <asp:TextBox ID="txtPVTInsYear1" runat="server" Width="80px"></asp:TextBox>%
                                <asp:RequiredFieldValidator ID="rfvPVTInsYear1" runat="server" ControlToValidate="txtPVTInsYear1"
                                    ErrorMessage="Require Interest Year 1."></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="revPVTInsYear1" runat="server" ControlToValidate="txtPVTInsYear1"
                                    ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                            </td>
                            <td valign="top">&nbsp;</td>
                            <td valign="top">
                                <asp:TextBox ID="txtHDBInsYear1" runat="server" Width="80px"></asp:TextBox>%
                                <asp:RequiredFieldValidator ID="rfvHDBInsYear1" runat="server" ControlToValidate="txtHDBInsYear1"
                                    ErrorMessage="Require Interest Year 1."></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="revHDBInsYear1" runat="server" ControlToValidate="txtHDBInsYear1"
                                    ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td valign="top">Description</td>
                <td valign="top">
                    <table width="100%" cellpadding="3" cellspacing="0" border="0">
                        <tr>
                            <td valign="top">
                                <asp:TextBox ID="txtPVTDesYear1" runat="server" Width="200px" MaxLength="20"></asp:TextBox>
                            </td>
                            <td valign="top">&nbsp;</td>
                            <td valign="top">
                                <asp:TextBox ID="txtHDBDesYear1" runat="server" Width="200px" MaxLength="20"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td valign="top">Interest - Year 2</td>
                <td valign="top">
                    <table width="100%" cellpadding="3" cellspacing="0" border="0">
                        <tr>
                            <td valign="top">
                                <asp:TextBox ID="txtPVTInsYear2" runat="server" Width="80px"></asp:TextBox>%
                                <asp:RequiredFieldValidator ID="rfvPVTInsYear2" runat="server" ControlToValidate="txtPVTInsYear2"
                                    ErrorMessage="Require Interest Year 2."></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="revPVTInsYear2" runat="server" ControlToValidate="txtPVTInsYear2"
                                    ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                            </td>
                            <td valign="top">&nbsp;</td>
                            <td valign="top">
                                <asp:TextBox ID="txtHDBInsYear2" runat="server" Width="80px"></asp:TextBox>%
                                <asp:RequiredFieldValidator ID="rfvHDBInsYear2" runat="server" ControlToValidate="txtHDBInsYear2"
                                    ErrorMessage="Require Interest Year 2."></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="revHDBInsYear2" runat="server" ControlToValidate="txtHDBInsYear2"
                                    ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td valign="top">Description</td>
                <td valign="top">
                    <table width="100%" cellpadding="3" cellspacing="0" border="0">
                        <tr>
                            <td valign="top">
                                <asp:TextBox ID="txtPVTDesYear2" runat="server" Width="200px" MaxLength="20"></asp:TextBox>
                            </td>
                            <td valign="top">&nbsp;</td>
                            <td valign="top">
                                <asp:TextBox ID="txtHDBDesYear2" runat="server" Width="200px" MaxLength="20"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td valign="top">Interest - Year 3</td>
                <td valign="top">
                    <table width="100%" cellpadding="3" cellspacing="0" border="0">
                        <tr>
                            <td valign="top">
                                <asp:TextBox ID="txtPVTInsYear3" runat="server" Width="80px"></asp:TextBox>%
                                <asp:RequiredFieldValidator ID="rfvPVTInsYear3" runat="server" ControlToValidate="txtPVTInsYear3"
                                    ErrorMessage="Require Interest Year 3."></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="revPVTInsYear3" runat="server" ControlToValidate="txtPVTInsYear3"
                                    ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                            </td>
                            <td valign="top">&nbsp;</td>
                            <td valign="top">
                                <asp:TextBox ID="txtHDBInsYear3" runat="server" Width="80px"></asp:TextBox>%
                                <asp:RequiredFieldValidator ID="rfvHDBInsYear3" runat="server" ControlToValidate="txtHDBInsYear3"
                                    ErrorMessage="Require Interest Year 3."></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="revHDBInsYear3" runat="server" ControlToValidate="txtHDBInsYear3"
                                    ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td valign="top">Description</td>
                <td valign="top">
                    <table width="100%" cellpadding="3" cellspacing="0" border="0">
                        <tr>
                            <td valign="top">
                                <asp:TextBox ID="txtPVTDesYear3" runat="server" Width="200px" MaxLength="20"></asp:TextBox>
                            </td>
                            <td valign="top">&nbsp;</td>
                            <td valign="top">
                                <asp:TextBox ID="txtHDBDesYear3" runat="server" Width="200px" MaxLength="20"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td valign="top">Interest - ThereAfter</td>
                <td valign="top">
                    <table width="100%" cellpadding="3" cellspacing="0" border="0">
                        <tr>
                            <td valign="top">
                                <asp:TextBox ID="txtPVTInsThereAfter" runat="server" Width="80px"></asp:TextBox>%
                                <asp:RequiredFieldValidator ID="rfvPVTInsThereAfter" runat="server" ControlToValidate="txtPVTInsThereAfter"
                                    ErrorMessage="Require Interest ThereAfter."></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="revPVTInsThereAfter" runat="server" ControlToValidate="txtPVTInsThereAfter"
                                    ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                            </td>
                            <td valign="top">&nbsp;</td>
                            <td valign="top">
                                <asp:TextBox ID="txtHDBInsThereAfter" runat="server" Width="80px"></asp:TextBox>%
                                <asp:RequiredFieldValidator ID="rfvHDBInsThereAfter" runat="server" ControlToValidate="txtHDBInsThereAfter"
                                    ErrorMessage="Require Interest ThereAfter."></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="revHDBInsThereAfter" runat="server" ControlToValidate="txtHDBInsThereAfter"
                                    ErrorMessage="Enter Number value." ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td valign="top">Description</td>
                <td valign="top">
                    <table width="100%" cellpadding="3" cellspacing="0" border="0">
                        <tr>
                            <td valign="top">
                                <asp:TextBox ID="txtPVTDesThereAfter" runat="server" Width="200px" MaxLength="20"></asp:TextBox>
                            </td>
                            <td valign="top">&nbsp;</td>
                            <td valign="top">
                                <asp:TextBox ID="txtHDBDesThereAfter" runat="server" Width="200px" MaxLength="20"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <%--</asp:Panel>--%>
            <tr>
                <td valign="top">More Info</td>
                <td valign="top">
                    <table width="100%" cellpadding="3" cellspacing="0" border="0">
                        <tr>
                            <td valign="top">
                                <asp:TextBox ID="txtPVTMoreInfo" runat="server" MaxLength="250" Rows="2" Columns="100"
                                        TextMode="MultiLine" Width="250px"></asp:TextBox>
                            </td>
                            <td valign="top">&nbsp;</td>
                            <td valign="top">
                                <asp:TextBox ID="txtHDBMoreInfo" runat="server" MaxLength="250" Rows="2" Columns="100"
                                        TextMode="MultiLine" Width="250px"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
           <tr>
                <td valign="top">Status</td>
                <td valign="top">
                    <table width="100%" cellpadding="3" cellspacing="0" border="0">
                        <tr>
                            <td valign="top">
                                <asp:CheckBox ID="chkPVTStatus" runat="server" />
                            </td>
                            <td valign="top">&nbsp;</td>
                            <td valign="top" align="left">
                                <asp:CheckBox ID="chkHDBStatus" runat="server" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    <p>
                        <asp:Button ID="btnNew" runat="server" CausesValidation="False" 
                            OnClientClick=" return confirm('Are you sure to clear form to create now?');"
                            Text="Add New" CssClass="btn blue" onclick="btnNew_Click" />
                        <asp:Button ID="btnSubmit" runat="server" Text="Submit" 
                            
                            OnClientClick="javascript:if(Page_IsValid) return confirm('Are you sure to save record?');" 
                            CssClass="btn blue" onclick="btnSubmit_Click" />
                    </p>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                    <asp:Label ID="lblMessage" runat="server"></asp:Label>
                </td>
            </tr>
        </table>

    </div>
    </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

